package com.example.zlw.singpixdemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";
    private ScreenBroadListener screenBroadListener;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e(TAG, "onCreate: " );

        setContentView(R.layout.activity_main);

        startService(new Intent(this, MyService.class));
        startService(new Intent(this, JobHandlerService.class));
    }

    public void jump(View view) {
        startActivity(new Intent(this,LiveActivity.class));
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e(TAG, "onDestroy: " );
//        screenBroadListener.unRegisterBroadCast();
    }
}
